package cn.hzw.supermarket.domain;

import java.io.Serializable;

public class User implements Serializable {
    /**
     * 用户自动增长id
     */
    Integer id;
    /**
     * 手机号
     */
    String phone;
    /**
     * 邮箱
     */
    String email;
    /**
     * 密码
     */
    String password;
    /**
     * 用户名
     */
    String username;
    /**
     * 头像
     */
    String avatar;
    /**
     * 性别
     */
    String gender;
    /**
     * 状态
     */
    String status;


    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public User(){
        super();
    }
    public User(String phone, String email, String password, String username, String avatar,String gender,String status) {
        super();
        this.phone = phone;
        this.email = email;
        this.password = password;
        this.username = username;
        this.avatar = avatar;
        this.gender = gender;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", gender='" + gender + '\'' +
                ", status=" + status +
                '}';
    }
}
